home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / comm1 / clcht415.lha / CLChat415 / ChatBot / source / chatserver.h < prev    next >
C/C++ Source or Header  |  1996-02-06  |  508b  |  26 lines

  1. #ifndef _CL_CHATSERVER_H
  2. #define _CL_CHATSERVER_H
  3.  
  4. struct chatmsg {
  5.     struct Message m;
  6.     APTR    id;
  7.     ULONG    cmd;
  8.     char    data[ 512 ];
  9. };
  10.  
  11. #define CM_LOGIN 1        // id is ServerPort, Data is Nickname
  12. #define CM_LOGOFF 2        // leave chat
  13. #define CM_DATA 3
  14. #define CM_GETUSERLIST 4
  15. #define CM_GETSERVERNAME 5
  16. #define CM_BBSMSG 6
  17. #define CM_NOTICE 7
  18.  
  19. #define CE_NICKINUSE 77    // Error NICK in Use
  20. #define CE_INVNICK 78    // Error NICK invalid
  21. #define CE_BANNED 79    // Error User banned
  22.  
  23. #define CPNAME "ChatServer.cmd"
  24.  
  25. #endif
  26.